
#include <iostream>
#include "HugeInt.h"


using std::cout;
using std::endl;


int main()
{
    HugeInt n1( 7654321 );
    HugeInt n2( 7891234 );
    HugeInt n3( "99999999999999999999999999999" );
    HugeInt n4( "1" );
    HugeInt n5;
    HugeInt n6;
    HugeInt n7;
    HugeInt n8( 999999999999 );
    HugeInt n9( 123456 );

    cout << "n1 is " << n1 << "\nn2 is " << n2
        << "\nn3 is " << n3 << "\nn4 is " << n4
        << "\nn5 is " << n5 << "\n\n";

    n5 = n1 + n2;
    cout << n1 << " + " << n2 << " = " << n5 << "\n\n";

    cout << n3 << " + " << n4 << "\n= " << ( n3 + n4 ) << "\n\n";

    n5 = n1 + 9;
    cout << n1 << " + " << 9 << " = " << n5 << "\n\n";

    n5 = n2 + 10000;
    cout << n2 << " + " << "10000" << " = " << n5 << endl;

    n6 = n2 - n1;
    cout << n2 << " - " << n1 << " = " << n6 << endl;

    n7 = n3;
    cout << n2 << " == " << n1 << " ? " << ( n2 == n7 ) << endl;

    cout << n1 << " * " << n2 << " = " << ( n2 * n1 ) << endl;

    cout << n1 << " <= " << n2 << " ? " << ( n1 < n2 ) << endl;

    cout << n8 << " / " << n9 << " = " << ( n8 / n9 ) << endl;

    return 0;
}

